Event OnLapperStart()
GlobalVar $countdown_hours;
GlobalVar $countdown_minutes;
$countdown_hours=24;
$countdown_minutes=0;
RegisterScheduleAction( "0 * * * * * *", Count_down );
EndEvent
Sub Count_down()
$countdown_minutes=$countdown_minutes-1;
IF ($countdown_minutes == -1)
THEN
$countdown_hours=$countdown_hours-1;
$countdown_minutes=59;
ENDIF
IF ($countdown_hours < 10)
THEN
$countdown_hours_display="0".$countdown_hours;
ELSE
$countdown_hours_display=$countdown_hours;
ENDIF
IF ($countdown_minutes < 10)
THEN
$countdown_minutes_display="0".$countdown_minutes;
ELSE
$countdown_minutes_display=$countdown_minutes;
ENDIF
cmdlfs ("/msg ^7Timer: " . $countdown_hours_display . ":" . $countdown_minutes_display);
EndSub
CASE "!idle":
SetConfigVar( OnIdleTimeout1, 10);
SetConfigVar( OnIdleTimeout2, 20);
privMsg( "(DEBUG) OnIdleTimeout1: " . GetConfigVar ("OnIdleTimeout1"));
privMsg( "(DEBUG) OnIdleTimeout2: " . GetConfigVar("OnIdleTimeout2"));
BREAK;
CatchEvent OnSpbLast( $userName ) # Player event
cmdlfs ( "/msg ^7DEBUG 3" );
EndCatchEvent